import request from "@/utils/request";

const api = ``;
/**
 * 获取用户信息
 * @returns
 */
export function getToken(params: { userName: string; password: string; }) {
    return request({
        url: `${api}/getlogin`,
        method: 'post',
        data: params
    })
}

export function logOut() {
    return request({
        url: `${api}/logOut`,
        method: 'post',
    })
}

/**
 * 获取动态路由
 * @returns
 */
export function getUserMenu(data: any): any {
    return request({
        url: `${api}/getRouter`,
        method: 'post',
        data
    })
}
